//File:vip弹窗
import 'package:flutter/material.dart';
import 'package:tiktokadult/assets_tool/app_colors.dart';
import 'package:tiktokadult/hj_utils/widget_utils.dart';
import 'package:tiktokadult/routers/jump_router.dart';
import 'package:tiktokadult/tools_base/widget/common_dialog.dart';

class VipACGDialog extends StatelessWidget {
  const VipACGDialog({Key? key}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return CommonDialog(
      child: Column(
        mainAxisSize: MainAxisSize.min,
        children: [
          Text(
            "温馨提示",
            style: TextStyle(
              fontSize: 20,
              color: Colors.white.withOpacity(.9),
              fontWeight: FontWeight.w500,
            ),
          ),
          24.sizeBoxH,
          Text(
            "本内容需要开通VIP会员\n开通会员 即可解锁查看完整版",
            textAlign: TextAlign.center,
            style: TextStyle(
              fontSize: 16,
              color: Colors.white.withOpacity(.45),
              height: 2,
            ),
          ),
          24.sizeBoxH,
          Container(
            height: 44,
            margin: EdgeInsets.symmetric(horizontal: 12),
            child: InkWell(
              onTap: () async {
                jumpToWalletPage();
              },
              child: Container(
                alignment: Alignment.center,
                decoration: BoxDecoration(
                  color: AppColors.actionRed,
                  borderRadius: BorderRadius.circular(3),
                ),
                child: Text(
                  "立即开通",
                  style: TextStyle(
                    fontSize: 16,
                    color: Colors.white,
                    fontWeight: FontWeight.w500,
                  ),
                ),
              ),
            ),
          ),
        ],
      ),
    );
  }
}
